package com.supersonic.backend.model;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;

@Entity
public class AwardSMSHistory extends BaseModel {
	
	@ManyToOne(cascade={CascadeType.ALL},fetch=FetchType.LAZY)
	private Deliver deliver;
	
	private Date receiveDate;
	private int awardSMSCount;
	
	@ManyToOne(cascade={CascadeType.ALL},fetch=FetchType.LAZY)
	private Promotion awardWay;
	/**
	 * @return the deliver
	 */
	public Deliver getDeliver() {
		return deliver;
	}
	/**
	 * @param deliver the deliver to set
	 */
	public void setDeliver(Deliver deliver) {
		this.deliver = deliver;
	}
	/**
	 * @return the receiveDate
	 */
	public Date getReceiveDate() {
		return receiveDate;
	}
	/**
	 * @param receiveDate the receiveDate to set
	 */
	public void setReceiveDate(Date receiveDate) {
		this.receiveDate = receiveDate;
	}
	/**
	 * @return the awardSMSCount
	 */
	public int getAwardSMSCount() {
		return awardSMSCount;
	}
	/**
	 * @param awardSMSCount the awardSMSCount to set
	 */
	public void setAwardSMSCount(int awardSMSCount) {
		this.awardSMSCount = awardSMSCount;
	}
	/**
	 * @return the awardWay
	 */
	public Promotion getAwardWay() {
		return awardWay;
	}
	/**
	 * @param awardWay the awardWay to set
	 */
	public void setAwardWay(Promotion awardWay) {
		this.awardWay = awardWay;
	}
	

}
